// 用户接口
export interface IUser {
    id: string;
    username: string;
    email: string;
    bio?: string;
    avatar?: string;
    createdAt: string;
    role?: 'user' | 'admin';
}

// 文章接口
export interface IArticle {
    id: string;
    title: string;
    content: string;
    author: {
        id: string;
        username: string;
        avatar?: string;
    };
    tags: string[];
    createdAt: string;
    updatedAt: string;
    likes: number;
    comments: number;
}

// 评论接口
export interface IComment {
    id: string;
    content: string;
    author: {
        id: string;
        username: string;
        avatar?: string;
    };
    articleId: string;
    createdAt: string;
    updatedAt: string;
} 